using dnlib.DotNet.Emit;
using LFramework;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestUI : MonoBehaviour
{
    UITestCtrl testCtrl;

    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            if (testCtrl == null)
                testCtrl = new UITestCtrl();
            testCtrl.Open();
        }
        else if (Input.GetKeyDown(KeyCode.B)) 
        {
            if (testCtrl != null) 
            {
                testCtrl.Close();
                testCtrl = null;
            }
        }
    }
}
